import request from '@/utils/request'

// 查询宣传视频配置列表
export function listVideoConfig(query) {
    return request({
        url: '/wanzhi/VideoConfig/list',
        method: 'get',
        params: query
    })
}

// 查询宣传视频配置详细
export function getVideoConfig(id) {
    return request({
        url: '/wanzhi/VideoConfig/' + id,
        method: 'get'
    })
}

// 新增宣传视频配置
export function addVideoConfig(data) {
    return request({
        url: '/wanzhi/VideoConfig',
        method: 'post',
        data: data
    })
}

// 修改宣传视频配置
export function updateVideoConfig(data) {
    return request({
        url: '/wanzhi/VideoConfig',
        method: 'put',
        data: data
    })
}

// 删除宣传视频配置
export function delVideoConfig(id) {
    return request({
        url: '/wanzhi/VideoConfig/' + id,
        method: 'delete'
    })
}
